import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

export function getUserInfo() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

export const getUserInfoById = id => request({
  url: `/sys/user/${id}`
})

// export function logout() {
//   return request({
//     url: '',
//     method: 'post'
//   })
// }
